﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Dooshion.IDAL
{
    /// <summary>
    /// 数据访问基本方法接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IBaseDAL<T>
    {
        int Insert(T t);
        bool Update(T t);
        bool Del(T t);
        List<T> GetList();
        T GetEntityById(int id);
        List<T> GetEntityByCondition(T t, int pageSize, int pageIndex, out int rowCount); 
    }
}
